import Layout from '@/layout'

const cardsRouter = {
  path: '/cards',
  component: Layout,
  redirect: '/cards/card',
  name: 'Cards',
  meta: {
    title: '优惠卡管理',
  },
  children: [
    {
      path: 'card',
      name: 'Card',
      meta: { title: '优惠卡' },
      component: () => import('@/views/cards/card'),
    },
    {
      path: 'customer_card',
      name: 'CustomerCard',
      meta: { title: '客户优惠卡'},
      component: () => import('@/views/cards/customer_card'),
    }
  ]
}

export default cardsRouter